package testing;

/**
 * User: Darren
 * Date: 11/05/13
 * Time: 4:03 PM
 */
public class MockBetfairMarket {
    private static final String marketWithRemovedRunner =
        // Market data
        "100626715~" + // Market ID
        "AUD~" + // Currency
        "ACTIVE~" + // MarketStatusEnum
        "0~" + // In Play Delay
        "1~" + // Number of Winners
        "NR\\: (AEST) <br>1. Cool Partner(11.2%,07\\:57)~" + // Market Information
        "true~" + // Discount allowed
        "6.5~" + // Market base rate
        "1359841193934~" +  // @deprecated refresh time in milliseconds
         // Removed runners
            "1. Cool Partner," + // Removed runner selection name
            "20.57," + // Removed time
            "11.2;~" + // Reduction factor
         "Y:" + // BSP Market
         // Runner 1
            "7030264~" + // Selection ID
            "0~" + // Order index
            "0.0~" + // Total amount matched
            "~" + // Last priced matched
            "~" + // Handicap
            "39.0~" + // Reduction factor
            "false~" + // Vacant
            "1.0~" + // Far starting price (SP)
            "1.1~" + // Near SP
            "~|" + // Actual SP
            // Runners back prices
                "1.1~" + // Price
                "14.43~" + // Amount available
                "L~" + // Indicates a back price
                "1~" + // Depth
                "1.07~53.9~L~2~1.03~13.38~L~3~" +
             // Runners lay prices
                "|:" +
         // Runner 2
            "6368961~1~0.0~~~13.4~false~1.0~1.1~~|" +
            "1.1~14.43~L~1~1.07~53.9~L~2~1.03~13.38~L~3~|:" +
         // Runner 3
            "7030265~2~11.98~11.0~~18.3~false~1.0~2.18~~|" +
            "2.18~26.89~L~1~1.1~14.43~L~2~1.07~53.9~L~3~|:" +
         // Runner 4
            "5881366~3~0.0~~~6.2~false~1.0~1.1~~|" +
            "1.1~14.43~L~1~1.07~53.9~L~2~1.03~13.38~L~3~|:" +
         // Runner 5
            "5037588~4~0.0~~~7.9~false~1.0~1.1~~|" +
            "1.1~14.43~L~1~1.07~53.9~L~2~1.03~13.38~L~3~|:" +
         // Runner 6
            "6405247~5~0.0~~~11.8~false~1.0~1.1~~|" +
            "1.1~14.43~L~1~1.07~53.9~L~2~1.03~13.38~L~3~|:" +
         // Runner 7
            "5162347~6~0.0~~~3.5~false~1.0~1.1~~|" +
            "1.1~14.43~L~1~1.07~53.9~L~2~1.03~13.38~L~3~|";
    private static final String marketWithBackPrices =
            // Market data
            "108092990~" + // Market ID
            "AUD~" + // Currency
            "ACTIVE~" + // MarketStatusEnum
            "0~" + // In Play Delay
            "1~" + // Number of Winners
            "~" + // Market Information
            "true~" + // Discount allowed
            "5.0~" + // Market base rate
            "1359838295547~" + // @deprecated refresh time in milliseconds
            "~" + // Removed runners
            "N:" + // BSP Market
            // Runner 1
                "75104~" + // Selection ID
                "1~" + // Order index
                "12000.23~" + // Total amount matched
                "1.88~" + // Last price matched
                "~" + // Handicap
                "~" + // Reduction factor
                "false~" + // Vacant
                "~" + // Far SP
                "~" + // Near SP
                "~|" + // Actual SP
                // Runners back prices
                    "1.88~5.88~L~1~1.87~221.43~L~2~1.86~12.78~L~3~" +
                // Runners lay prices
                    "|:" +
            // Runner 2
                "49844~2~197.09~5.2~~~false~~~~|" +
                "5.2~18.02~L~1~5.1~24.29~L~2~5.0~29.43~L~3~|:" +
            // Runner 3
                "58805~3~240.7~3.5~~~false~~~~|" +
                "3.55~57.09~L~1~3.5~46.91~L~2~3.45~27.91~L~3~|";
    private static final String marketWithLayPrices =
            "108092990~AUD~ACTIVE~0~1~~true~5.0~1359838295547~~N:" +
            "75104~1~12000.23~1.88~~~false~~~~|" +
                "|1.89~149.67~B~1~1.9~1594.15~B~2~1.93~22.56~B~3~:" +
            "49844~2~197.09~5.2~~~false~~~~|" +
                "|5.3~52.23~B~1~5.4~6.99~B~2~1000.0~3.17~B~3~:" +
            "58805~3~240.7~3.5~~~false~~~~|" +
                "|3.6~56.25~B~1~3.65~71.2~B~2~3.9~135.86~B~3~";
    private static final String marketWithBackAndLayPrices =
            "108092990~AUD~ACTIVE~0~1~~true~5.0~1359838295547~~N:" +
            "75104~1~12000.23~1.88~~~false~~~~|" +
                    "1.88~5.88~L~1~1.87~221.43~L~2~1.86~12.78~L~3~|1.89~149.67~B~1~1.9~1594.15~B~2~1.93~22.56~B~3~:" +
            "49844~2~197.09~5.2~~~false~~~~|" +
                    "5.2~18.02~L~1~5.1~24.29~L~2~5.0~29.43~L~3~|5.3~52.23~B~1~5.4~6.99~B~2~1000.0~3.17~B~3~:" +
            "58805~3~240.7~3.5~~~false~~~~|" +
                    "3.55~57.09~L~1~3.5~46.91~L~2~3.45~27.91~L~3~|3.6~56.25~B~1~3.65~71.2~B~2~3.9~135.86~B~3~";

    public static String getMarketWithRemovedRunner() {
        return marketWithRemovedRunner;
    }

    public static String getMarketWithBackPrices() {
        return marketWithBackPrices;
    }

    public static String getMarketWithLayPrices() {
        return marketWithLayPrices;
    }
}
